package com.ly.mpayment.persist.entity.slow;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * WxProduct entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "slow_product")
public class SlowProduct implements java.io.Serializable {

	private String proId;
	private Date createTime;
	private String price;
	private BigDecimal discount;
	private Integer status;
	private BigDecimal discountAmount;
	private String remark;
	private String operator;

	// Constructors

	/** default constructor */
	public SlowProduct() {
	}

	/** minimal constructor */
	public SlowProduct(String proId) {
		this.proId = proId;
	}

	/** full constructor */
	public SlowProduct(String proId, Date createTime, String price,
					   BigDecimal discount, Integer status, BigDecimal discountAmount, String remark) {
		this.proId = proId;
		this.createTime = createTime;
		this.price = price;
		this.discount = discount;
		this.status = status;
		this.discountAmount = discountAmount;
		this.remark = remark;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "pro_id", unique = true, nullable = false, length = 36)
	public String getProId() {
		return proId;
	}
	public void setProId(String proId) {
		this.proId = proId;
	}


	@Column(name = "create_time", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "price", length = 36)
	public String getPrice() {
		return this.price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	@Column(name = "discount", precision = 10, scale = 0)
	public BigDecimal getDiscount() {
		return this.discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "discount_amount", precision = 10, scale = 5)
	public BigDecimal getDiscountAmount() {
		return this.discountAmount;
	}

	public void setDiscountAmount(BigDecimal discountAmount) {
		this.discountAmount = discountAmount;
	}

	@Column(name = "remark", length = 100)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "operator", length = 100)
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}
}
